<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core_1_1" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<base href="${pageContext.request.contextPath}/">
<table class="data_list_table">
    <tr>
        <th>编号</th>
        <th>客户</th>
        <th>客户经理</th>
        <th>上次下单时间</th>
        <th>确认流失时间</th>
        <th>状态</th>
        <th>操作</th>
    </tr>

    <tbody id="loadCstLost">
    <c:forEach var="cstLost" items="${pageInfo.list}">
        <tr>
            <td>${cstLost.lstId}</td>
            <td>${cstLost.lstCustName}</td>
            <td>${cstLost.lstCustManagerName}</td>
            <td class="lstLastOrderDate">${cstLost.lstLastOrderDate}</td>
            <td class="lstLostDate">${cstLost.lstLostDate}
            </td>

            <td>${cstLost.lstStatus}</td>
            <td>
                <img onclick="to('cstLost/detailCstLost?lstId=${cstLost.lstId}');" title="确认流失" src="images/bt_confirm.gif"
                     class="op_button"/>
                <img onclick="to('cstLost/detailCstLostRelay?lstId=${cstLost.lstId}');" title="暂缓流失" src="images/bt_relay.gif" class="op_button"/>
            </td>
        </tr>
    </c:forEach>
    </tbody>

    <tr>
        <th colspan="7" class="pager">
            <div class="pager">
                <c:if test="${not empty pageInfo}">
                    <%--<span>第页${page.pageSize}条，共${page.totalRow}, 共${page.totalPage}页</span>--%>
                    <ul class="pagination">
                        <c:if test="${pageInfo.isFirstPage}">
                            <a href="javascript:void(0)" style="cursor: text; color:darkgray;">首页</a>&nbsp;&nbsp;&nbsp;
                        </c:if>
                        <c:if test="${ not pageInfo.isFirstPage}">
                            <a href="javascript:onloadCst('cstLost/showCstLostAllAjax1?pageNum=${pageInfo.firstPage}')">首页</a>&nbsp;&nbsp;&nbsp;
                        </c:if>
                        <c:if test="${ not pageInfo.hasPreviousPage }">
                            <a href="javascript:void(0)" style="cursor:pointer ;color: darkgrey" >上一页</a>&nbsp;&nbsp;&nbsp;
                        </c:if>
                        <c:if test="${pageInfo.hasPreviousPage }">
                            <a href="javascript:onloadCst('cstLost/showCstLostAllAjax1?pageNum=${pageInfo.prePage}')">上一页</a>&nbsp;&nbsp;&nbsp;
                        </c:if>
                        <c:if test="${ not pageInfo.hasNextPage  }">
                            <a href="javascript:void(0)" style="cursor:pointer ;color: darkgrey" >下一页</a>&nbsp;&nbsp;&nbsp;
                        </c:if>
                        <c:if test="${pageInfo.hasNextPage  }">
                            <a href="javascript:onloadCst('cstLost/showCstLostAllAjax1?pageNum=${pageInfo.nextPage}')">下一页</a>&nbsp;&nbsp;&nbsp;
                        </c:if>
                        <c:if test="${ pageInfo.isLastPage }">
                            <a href="javascript:void(0)" style="cursor: text; color:darkgray">尾页</a>&nbsp;&nbsp;&nbsp;
                        </c:if>
                        <c:if test="${not pageInfo.isLastPage }">
                            <a href="javascript:onloadCst('cstLost/showCstLostAllAjax1?pageNum=${pageInfo.lastPage}')">尾页</a>&nbsp;&nbsp;&nbsp;
                        </c:if>
                    </ul>
                </c:if>
            </div>
        </th>
    </tr>

</table>

